package day050626;

public class Test7 {
    public static void main(String[] args) {
        //int[] a={0,0,0};
        int[]  a=new int[3];
        System.out.println(a.length);
        //int[]  a=new int[]{0,0,0};
        System.out.println(a[a.length-1]);//0

        double[] b=new double[5];
        System.out.println(b[b.length-1]); //0.0

        boolean[] c=new boolean[3];
        System.out.println(c[c.length-1]);// false

        String[] d=new String[3];
        System.out.println(d[2]);//null
        String[] dd={"AA" ,"BB" ,"CC","DD"};
        System.out.println(dd[2]);

        char[] e={'A', 'B', 'C','D', 'E'};
        System.out.println(e[c.length-1]);// C
    }
}
